<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>
<!DOCTYPE html>
<html>

<head>
<meta charset="ISO-8859-1">
<title>添加商品</title>
<link rel="stylesheet" href="css/bootstrap.css" />
</head>
<body>
<!--header-->
<jsp:include page="/header.jsp">
    <jsp:param name="flag" value="1"></jsp:param>
</jsp:include>

<div class="container-fluid">
	<br><br>
	<h2>${message }</h2>
	<form action="fileServlet?action=upload" method="post" enctype="multipart/form-data">
		
		<div class="form-group">
			<label for="input_file" class="col-sm-1 control-label">封面图片</label>
			<div class="col-sm-6">
				<input type="file" name="cover"  id="input_file" required="required">
			</div>
		</div>
		<br /><br />
	
		<div class="form-group">
			<div class="col-sm-offset-1 col-sm-10">
				<button type="submit" class="btn btn-success">上传图片</button>
			</div>
		</div>
	</form>
	<br /><br />
	<form action="AddServlet">
	<div class="form-group">
			<label for="input_name" class="col-sm-1 control-label">名称</label>
			<div class="col-sm-6">
				<input type="text" class="form-control" id="input_name" name="name"  required="required">
			</div>
		</div>
		<br /><br />
		<div class="form-group">
			<label for="input_name" class="col-sm-1 control-label">价格</label>
			<div class="col-sm-6">
				<input type="text" class="form-control" id="input_name" name="price" >
			</div>
		</div>
		<br /><br />
		<div class="form-group">
			<label for="input_name" class="col-sm-1 control-label">介绍</label>
			<div class="col-sm-6">
				<input type="text" class="form-control" id="input_name" name="description" >
			</div>
		</div>
		<br /><br />
		<div class="form-group">
			<label for="input_name" class="col-sm-1 control-label">库存</label>
			<div class="col-sm-6">
				<input type="text" class="form-control" id="input_name" name="pnum" >
			</div>
		</div>
			<br /><br />
		<div class="form-group">
			<label for="select_topic" class="col-sm-1 control-label">类目</label>
			<div class="col-sm-6">
				<input type="text" class="form-control" id="input_name" name="category" >
			</div>
		</div>
		<br /><br />
	<div class="form-group">
			<label for="select_topic" class="col-sm-1 control-label">图片名称</label>
			<div class="col-sm-6">
				<input type="text" class="form-control" id="input_name" name="imgurl" >
			</div>
		</div>
			<div class="form-group">
			<div class="col-sm-offset-1 col-sm-10">
				<button type="submit" class="btn btn-success">添加商品</button>
			</div>
		</div>
	</form>
	<br /><br />
	<br /><br />
	<div class="form-group">
			<div class="col-sm-offset-1 col-sm-10">
				<button type="submit" class="btn btn-success"><a href="IndexServlet">返回首页</a></button>
			</div>
	
</div>
</div>
</body>
</html>


